/**
* 称赞了我
* 链接：this.$router.push({path:'/admirers'})
*/

<template>
  <div class="x-bg situation admirers">
    <header-top :option="headerOption"></header-top>
    <Overview></Overview>
    <img src="~assets/images/bowen@3x.png" width="100%" height="40px">
    <Rockmen></Rockmen>
  </div>
</template>

<script>
  import Constant from 'common/constant'
  import LocalDAO from 'common/localDAO'
  import HeaderTop from 'components/HeaderTop'
  import Overview from 'components/dynamic/admirers/Overview'
  import Rockmen from 'components/dynamic/admirers/Rockmen'
  export default {
    data () {
      return {
        headerOption: {
          title: '点赞我的人',
          leftBtn: Constant.leftBtn.BACK,
          operations: [Constant.operation.SHARE],
          page: Constant.storage.SHARE_ADMIRERS
        }
      }
    },
    components: {
      HeaderTop,
      Overview,
      Rockmen
    },
    created () {
      this.init();
    },
    methods: {
      //设置分享页数据
      init () {
        let sharePage = LocalDAO.getShareAdmirers();
        sharePage.adDownload = {userCode: LocalDAO.getUserCode()};
        LocalDAO.setShareAdmirers(sharePage);
      }
    }
  }
</script>
